package org.jeecg.trace.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 包装子表
 * @Author: shaolong
 * @Date: 2022-11-16
 * @Version: V1.0
 */
@Data
@TableName("mes_pack_item")
@ApiModel(value = "mes_pack_item对象", description = "包装子表")
public class MesPackItem implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 产线或产线组
     */
    @ApiModelProperty(value = "主键")
    @TableId
    private Integer recId;

    /**
     * 产线或产线组
     */
    @Excel(name = "产线或产线组", width = 15)
    @ApiModelProperty(value = "产线或产线组")
    private String line;
    /**
     * 工单ID
     */
    @Excel(name = "工单ID", width = 15)
    @ApiModelProperty(value = "工单ID")
    private String woid;
    /**
     * 包箱ID
     */
    @ApiModelProperty(value = "包箱ID")
    private String packId;
    /**
     * 工件总成条码
     */
    @Excel(name = "工件总成条码", width = 15)
    @ApiModelProperty(value = "工件总成条码")
    private String unitsn;

    @Excel(name = "产品码", width = 15)
    @ApiModelProperty(value = "产品码")
    @TableField(exist = false)
    private String fsn;
    /**
     * 产品或产品组
     */
    @Excel(name = "产品或产品组", width = 15)
    @ApiModelProperty(value = "产品或产品组")
    private String partno;
    /**
     * 更新时间
     */
    @Excel(name = "更新时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date ctime;
}
